package jrain.fw.core.json;

import java.util.List;
import java.util.Map;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述： JSON 服务
 * </pre>
 */
public interface JsonService {

	public String toJson(Object object);

	public String toJson(Object object, Map<String, Object> cfg);

	public List<Object> toList(String json);

	public List<Object> toList(String json, Map<String, Object> cfg);

	public Map<String, Object> toMap(String json);

	public Map<String, Object> toMap(String json, Map<String, Object> cfg);

	public <T> T toObject(String json, Class<T> t);

	public <T> T toObject(String json, Class<T> t, Map<String, Object> cfg);
	
	public String toPageJson(Object object);
	
	public String toPageJson(Object object, Map<String, Object> cfg);

}
